#pragma once
#include <d3d9.h>
#include "Window.h"
#include "VertexRHW.h"
#include "SpriteMgr.h"

class Device
{
private:
	LPDIRECT3D9 g_pD3D;
	LPDIRECT3DDEVICE9 g_pd3dDevice;
	D3DPRESENT_PARAMETERS d3dpp;

	LPDIRECT3DTEXTURE9 Texture1;
	SpriteMgr* SpMgr;

	RECT MainScreenRt;
public:
	Device();
	~Device();

	LPDIRECT3DDEVICE9 GetDevice() { return g_pd3dDevice; }

	void Initialize(HWND m_hWnd);
	void Render();
};